package com.laf.manage.domain.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class StoreQuery extends PageQuery{

    @ApiModelProperty("收藏内容类型 1 动态  2 失物")
    @NotNull(message = "收藏内容类型不能为空")
    @Range(min =  1 , max = 2 , message = "收藏内容类型错误")
    private Integer contentType;

    @ApiModelProperty(value = "收藏人" , hidden = true)
    private Long createUserId;

}
